package net.melon.cata.manager.id;

import net.melon.cata.manager.exception.OverMaxCountException;
import net.melon.cata.pojo.Catalog;

/**
 * 拥有上下级的ID规则生成器
 * @author Administrator
 *
 */
public interface ScaleIDGenerate {

	Long generateFirstChild(Long parentId);
	
	Long generateBrother(Long maxBrotherIdLong, Catalog catalog) throws OverMaxCountException;
	
	Long getParent(Long childId) ;
	
}
